/*
---------------------
author     ：heihuzi
update     ：2018-08-20
note       ：主框架样式
---------------------
*/

/*
------------------------------------
框架样式
------------------------------------
*/
.sbb-frame-container {
    position: absolute;
    top: 0px;
    bottom: 0px;
    width: 100%;
    //header
    .p-sbb-header {
        height: 60px;
        background: #fff;
        box-shadow: 0 0 10px rgba(#000,0.15);
        position: relative;
        z-index: 3;

        .userinfo {
            text-align: right;
            padding-right: 35px;
            float: right;
            .userinfo-inner {
                cursor: pointer;
                color:#fff;
                img {
                    width: 40px;
                    height: 40px;
                    border-radius: 20px;
                    margin: 10px 0px 10px 10px;
                    float: right;
                }
            }
        }
        .p-logo {
            float: left;
            width:230px;
            height:60px;
            color: #fff;
            background-color: $page-side-bgcolor;
            img {
                width: 40px;
                float: left;
                margin: 10px 10px 10px 18px;
            }
            .txt {
                color:#fff;
                font-size: 20px;
                display: block;
                line-height: 60px;
                text-align: center;
            }
        }
       //导航-面包屑
        .p-bread-crumb{
            font-size: 14px;
            margin: 18px 0 0 20px;
            float: left;
           .icon{
               vertical-align: middle;
               display: inline-block;
               width: 20px;
               height: 20px;
               background: url(../img/icon_address.png) no-repeat;
               background-size: 100%;
           } 
        }
        //管理员账号
        .p-manage-user{
            font-size: 14px;
            position: absolute;
            right: 10px;
            top: 15px;
            .avatar{
                width: 35px;
                height: 35px;
                border-radius: 20px;
            }
            .name{
                margin: 0 10px;
            }
            .quit{
                color: #f00;
            }
        }
    }
    //main
    .p-sbb-main {
        display: flex;
        position: absolute;
        top: 60px;
        bottom: 0px;
        overflow: hidden;
        width: 100%;
        .menu-expanded {
            flex:0 0 230px;
            width: 230px;
            background-color: $page-side-bgcolor;
          
            .p-menu-wrap{
                height: 100%;
                list-style: none;
                position: relative;
                margin: 0;
                padding-left: 0;
                .p-sub-item{
                    position: relative;
                    a{
                        display: block;
                        color: #fff;
                        text-decoration: none;
                        font-size: 14px;
                    }
                    .s-title{
                        padding: 12px 0;
                        position: relative;
                        .icon{
                            display: inline-block;
                            width: 22px;
                            height: 22px;
                            vertical-align: middle;
                            margin-right: 10px;
                            @each $i in home,sys,user,goods,orders,logistics,app,log,sales {
                                &.#{$i}{
                                    background: url(../img/nav/#{$i}.png) no-repeat;
                                    background-size: 100%;
                                }
                            }
                        }
                        &:after{
                            content: "";
                            display: inline-block;
                            width: 20px;
                            height: 20px;
                            background: url(../img/icon_arr_right_white.png) no-repeat;
                            background-size: 100%;
                            position: absolute;
                            right: 20px;
                            top: 50%;
                            margin-top: -10px;
                        }
                        .a{
                            text-indent: 20px;
                        }
                        &.arrow-right{
                            
                            &:after{
                                transform:rotate($transform-deg);
                                -ms-transform:rotate($transform-deg); 	/* IE 9 */
                                -moz-transform:rotate($transform-deg); 	/* Firefox */
                                -webkit-transform:rotate($transform-deg); /* Safari 和 Chrome */
                                -o-transform:rotate($transform-deg); 	/* Opera */
                            }
                        }
                    }
                    .s-menu{
                        display: none;
                        padding-bottom: 10px;
                        .el-item{
                            padding: 8px 0;
                            .a{
                                text-indent: 50px;
                            }
                            &.active{
                                .a{
                                    color: $page-common-color;
                                }
                            }
                        }
                    }
                     
                    //打开状态
                    &.is-opened{
                        background: #32373a;
                        .s-title{
                            .a{
                              &:before{
                                  content: "";
                                  display: inline-block;
                                  width: 3px;
                                  height: 50px;
                                  background: $page-common-color;
                                  position: absolute;
                                  left: 0;
                                  top: 0;
                              }
                            }
                        }
                        .s-menu{
                            display: block;
                        }
                    }
                }
                
            }
            
        }
     
      
        .content-container {
            flex:1;
            overflow-y: scroll;
            padding: 10px;
            
            .content-wrapper {
                background-color: #fff;
                box-sizing: border-box;
                padding:30px 20px;

                .bread-crumb {
                    margin-bottom: 30px;
                    border-bottom: 1px solid #ddd;
                    padding-bottom: 15px;
                    .b-inner {
                        .tit{
                            font-weight: normal;
                        }
                        .float-right{
                            font-weight: normal;
                            font-size: 16px;
                        }
                    }
                  
                }
            }
        }
    }
}

/*
------------------------------------
首页统计数据
------------------------------------
*/
.page-index-wrap{
    //中部
    .block-center{
        .b-title{
            font-size: 20px;
            font-weight: bold;
            .t{
                font-size: 12px;
            }
        }
        .b-num{
            font-size: 40px;
            font-weight: normal;
            margin: 20px 0 30px;
        }
        //
        .b-list{
            li{
                margin-bottom: 5px;
                .dot{
                    display: inline-block;
                    width: 18px;
                    height: 18px;
                    background: url(../img/icon_dot.png) no-repeat;
                    background-size: 100%;
                    vertical-align: middle;
                }
                .tit{
                    font-size: 14px;
                }
                .num{
                    float: right;
                    color: $page-common-color;
                }
            }
        }
    }
    //右侧
    .block-right{
        .b-list{
            li{
                height: 150px;
                border: 1px solid #ededed;
                margin-bottom: 10px;
                padding: 20px;
                // border-radius: 5px;
                .tit{
                    font-size: 20px;
                    font-weight: bold;
                    margin-bottom: 30px;
                }

                .info{
                    .rmb{
                        font-style: normal;
                        margin-right: 6px;
                    }
                    .num{
                        font-size: 30px;
                        margin-right: 10px;
                        font-weight: normal;
                    }
                    .tips{
                        font-size: 12px;
                        color: #fff;
                        border-radius: 4px;
                        display: inline-block;
                        padding: 0 5px;
                        &.blue{
                            background: #25c7d6;
                        }
                        &.red{
                            background: #f00;
                        }
                    }
                }
                &.p1{
                    border-top: 3px solid #25c7d6;
                    background: url(../img/bg_block_01.jpg) no-repeat right center;
                }
                &.p2{
                    border-top: 3px solid $page-common-color;   
                    background: url(../img/bg_block_02.jpg) no-repeat right center;
                }
            }
        }
    }
}